<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/component/commonTagLib.jsp" %>

<!DOCTYPE html>
<html>
<head>
    <title><spring:message code="message.listForm.yiLiaoJiGou"/><spring:message code="message.listForm.zhuCeXinXi"/><spring:message code="message.jqGrid.cz.audit"/><spring:message code="message.listForm.riZhi"/></title>
    <%@ include file="/WEB-INF/component/commonCSS.jsp" %>
</head>
<body class="skin-blue-light sidebar-mini fixed skin-blue-light-frame">
							
    <section class="content-header">
        <h1><spring:message code="message.listForm.yiLiaoJiGou"/><spring:message code="message.listForm.zhuCeXinXi"/><spring:message code="message.jqGrid.cz.audit"/><spring:message code="message.listForm.riZhi"/></h1>
        <ol class="breadcrumb">
            <li><a href="${ctx}/home.jsp"><i class="fa fa-home"></i><spring:message code="message.lable.first"/></a></li>
            <li class="active"><a href="#"><spring:message code="message.listForm.zhuCeShenHe"/></a></li>
            <li class="active"><a href="#"><spring:message code="message.listForm.yiLiaoJiGou"/><spring:message code="message.listForm.zhuCeXinXi"/><spring:message code="message.jqGrid.cz.audit"/><spring:message code="message.listForm.riZhi"/></a></li>
        </ol>
    </section>
    
    <section class="content">
        <div class=" box box-success">
            <div class="box-body">
                <div class="form-inline">
                	<div class="form-group form-group-xs">
                        <label for="name"><spring:message code="message.listForm.yiLiaoJiGouMingCheng"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <input class="form-control" type="text" id="hospName" placeholder="<spring:message code="message.listForm.yiLiaoJiGouMingCheng"/>" maxlength="200" />
                    </div>
                	<div class="form-group form-group-xs">
                        <label for="name"><spring:message code="message.listForm.yiLiaoJiGouBianMa"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <input class="form-control" type="text" id="hospCode" placeholder="<spring:message code="message.listForm.yiLiaoJiGouBianMa"/>" maxlength="100" />
                    </div>
                    
                    <button type="button" class="btn btn-success btn-sm" onclick="search();"><spring:message code="message.button.seachSpacing"/></button>
                </div>
            </div>
        </div>
        
        <table class="jqgrid" id="gridlist"></table>
        <div id="gridpage"></div>
        
    </section>
    
    <%@ include file="/WEB-INF/component/commonJS.jsp" %>
    
    <script type="text/javascript">
    	function search(page) {
    		var hospCode = $.trim($("#hospCode").val());
    		var hospName = $.trim($("#hospName").val());
    		$("#gridlist").jqGrid('setGridParam',{  
    	        datatype:'json',
    	        postData:{"hospCode":hospCode, "hospName":hospName},
    	        page : (page || 1)
    	    }).trigger("reloadGrid"); //重新载入  
    	}
    	
        $(function () {
            $("#gridlist").jqGrid({
                url: "getAuditHospLogList.html",
                mtype: "post",
                datatype: "json",
                autowidth: true,
                height: 350,
                colNames: [
                    '<spring:message code="message.jqGrid.cz"/>',
                    '<spring:message code="message.listForm.yiLiaoJiGouBianMa"/>',
					'<spring:message code="message.listForm.yiLiaoJiGouMingCheng"/>', 
					'<spring:message code="message.listForm.yiLiaoJiGouFenLei"/>', 
					'<spring:message code="message.listForm.yiLiaoJiGouDengJi"/>',
					'<spring:message code="message.listForm.diQu"/>', 
					'<spring:message code="message.listForm.shenHeZhuanTai"/>'
					
                ],
                colModel: [
                    { name: 'operate', width: 3, align:"center", sortable: false,
	                     formatter : function(val, opts, rowdata) {
    	                 var str = "<ms:btn url='/auditUser/toAuditHospLogDetail.html'><a href='toAuditHospLogDetail.html?hospId=" + rowdata.hospId + "' style='background:url(${ctx}/lib/img/icon/icon.png) no-repeat -100px 0px' class='opIcon' title='<spring:message code="message.jqGrid.cz.xiangQing"/>'></a></ms:btn>"
    	                 return str;
                    }},
					{ name: 'hospCode', width: 10, align:"center", sortable: false},
                    { name: 'hospName', width: 10, align:"left", sortable: false},
                    { name: 'hospClassifyName', width: 10, align:"center", sortable: false },
                    { name: 'hospLevelName', width: 10, align: 'center', sortable: false},
                    { name: 'area.arfullname', width: 10, align: 'center', sortable: false},
                    { name: 'auditStatusName', width: 10, align: "center", sortable: false}
                    
                ],
                rowNum: 10,
                rowList: [10, 20, 30],
                rownumbers: true,
                pager: "#gridpage",
                viewrecords: true,
                caption: "<spring:message code="message.listForm.yiLiaoJiGou"/><spring:message code="message.listForm.zhuCeXinXi"/><spring:message code="message.jqGrid.cz.audit"/><spring:message code="message.listForm.riZhi"/><spring:message code="message.listForm.lieBiao"/>",
                jsonReader: {
                    id: "id"
                }
            });
            
            $("#gridlist").jqGrid('navGrid', '#gridpage', { add: false, edit: false, del: false, search: false, refresh: false });
            
            $(window).trigger("resize");
            
        });
    </script>
</body>
</html>












